smp_call_function() must be usable as an expression
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 20 Oct 2005 10:27:51 +0000 (11:27 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 20 Oct 2005 10:27:51 +0000 (11:27 +0100)
return an integer.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/include/xen/smp.h

index 959657d856a65c0cf77e9fd4e1b028648274a508..a99ea486f63836810fcc0b1f4dc98c008cea6dde 100644 (file)
@@ -90,7 +90,7 @@ void smp_prepare_boot_cpu(void);
 #define smp_processor_id()                     0
 #endif
 #define hard_smp_processor_id()                        0
-#define smp_call_function(func,info,retry,wait)        do {} while (0)
+#define smp_call_function(func,info,retry,wait)        ({ do {} while (0); 0; })
 #define on_each_cpu(func,info,retry,wait)      ({ func(info); 0; })
 #define num_booting_cpus()                     1
 #define smp_prepare_boot_cpu()                 do {} while (0)